package cn.cd.anStudio;

public class MyBusCommonBase {
	
	//private static final String TAG = "MyBusCommonBase";
	
	public static final boolean DEBUG = true;
	
	private static String version = null;
	
	public static final int SERVICE_MAX_SLEEP_MS = 1000;
	
	public static final String SERVER = "http://www.10628106.com";
	
	public static final String EMPTY_QUOTE = "&nbsp;";
	public static final String BREAK_QUOTE = "<br>";
	
	public static final String KEY_BUS_ID = "busNum";
	public static final String KEY_SITE = "GpsSite";
	public static final String KEY_TYPE = "type";
	public static final String KEY_PAGE = "page";
	//Service to locate the distance between a certain bus and a bus stop
	public static final String LOCATION_SERVICE_REQUEST = "/ADSB/BusLocation.aspx?";
    //Service to get the route for a certain bus
    public static final String BUSLINE_SERVICE_REQUEST = "/ADSB/BusLine.aspx?";
	//TODO : More service can be added.
	
	public static final int MY_BUS_OK = 1;
	public static final int MY_BUS_FAILED = 0;
	
	public static final int LOCATION_SERVICE_ERROR  = 1;
	public static final int LOCATION_SERVICE_ARRIVE = 2;

	public static void setVersion (String ver) {
		
		if (!ver.isEmpty()) {
			version = new String(ver);
		}
	}
	
	public static String getVersion() {
		return version;
	}
}
